import * as types from './types'
import {GetHomeworkApi} from '../../config/api'

export const fetch_correct_classrooms = (id) => {
    return dispatch => {
        dispatch({type: types.FETCHING_CORRECTING_CLASSROOM})
        GetHomeworkApi(id).then((data) => {
            dispatch({type: types.FETCHED_CORRECTING_CLASSROOM, data: data})
        })
    }
}